﻿using Syspetro.Core.AppDeal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Core.CommandBus
{
    public interface ICommandBus
    {
        /// <summary>
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="command"></param>
        /// <param name="ignores">忽略的Handler</param>
        /// <returns></returns>
        SpActionResult Send<T>(T command , params Type[] ignores) where T : Command;
    }
}
